package domain;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class propertiesUtils {
  public static Properties p = new Properties();

  public static boolean getproperties(String url) {
    try {
      p.load(propertiesUtils.class.getClassLoader().getResourceAsStream(url));
    } catch (IOException e) {
      e.printStackTrace();
      return false;
    }
    return true;
  }

  public static String getPropertiesVale(String key) {

    return p.getProperty(key);
  }
}
